<!--
@author	Yi Bo <etng2004@gmail.com>
@version	$Id: staff_edit.php 49 2007-09-06 07:17:07Z etng2004 $
@copyrithg	2006-2007 ETE.CN
@license 	PHP Version 3.0 {@link http://www.php.net/license/3_0.txt}
-->
<?php
$this->declareVars();
require_once(dirname(__FILE__) . '/_meta_staff.php');
echo $this->render('header.php');
//$this->dump($$this->staff);
$staff = $this->staff;
?>
<h2>修改帐号<?php echo $staff['username'];?></h2>
<form action="<?php echo $this->base_url; ?>/edit/" method="post" enctype="multipart/form-data" name="frmAddstaff" id="frmAddstaff">
  <input type="hidden" name="fields[id]" value="<?php echo $staff['id'];?>"/>
  <table cellpadding="0" cellspacing="0" border="0">
    <tr class="tblhead">
      <td colspan="2">修改</td>
    </tr>
        	<tr class="tblbody">
	<td width="15%"><?php echo $meta['staff']['fields']['userpass'];?>：</td>
	<td width="85%"><input type="text" name="fields[userpass]" value="" id="field_userpass" /></td>
</tr>
        	<tr class="tblbody">
	<td width="15%"><?php echo $meta['staff']['fields']['name'];?>：</td>
	<td width="85%"><input type="text" name="fields[name]" value="<?php echo $staff['name'];?>" id="field_name" /></td>
</tr>
        	<tr class="tblbody">
	<td width="15%"><?php echo $meta['staff']['fields']['email'];?>：</td>
	<td width="85%"><input type="text" name="fields[email]" value="<?php echo $staff['email'];?>" id="field_email" /></td>
</tr>
        	<tr class="tblbody">
	<td width="15%"><?php echo $meta['staff']['fields']['msn'];?>：</td>
	<td width="85%"><input type="text" name="fields[msn]" value="<?php echo $staff['msn'];?>" id="field_msn" /></td>
</tr>
        	<tr class="tblbody">
	<td width="15%"><?php echo $meta['staff']['fields']['qq'];?>：</td>
	<td width="85%"><input type="text" name="fields[qq]" value="<?php echo $staff['qq'];?>" id="field_qq" /></td>
</tr>
        	<tr class="tblbody">
	<td width="15%"><?php echo $meta['staff']['fields']['phone'];?>：</td>
	<td width="85%"><input type="text" name="fields[phone]" value="<?php echo $staff['phone'];?>" id="field_phone" /></td>
</tr>
        	<tr class="tblbody">
	<td width="15%"><?php echo $meta['staff']['fields']['cellphone'];?>：</td>
	<td width="85%"><input type="text" name="fields[cellphone]" value="<?php echo $staff['cellphone'];?>" id="field_cellphone" /></td>
</tr>


    <tr class="tblfoot">
      <td colspan="2" align="center"><input type="submit" value="提交" /></td>
    </tr>
  </table>
</form>
<div class="develop_notice">
<textarea name="CRMLiteDevelopCode" rows="10" cols="50" wrap="off" onfocus="this.select();">
<table>
  <?php
        foreach ($staff as $field => $value):
	?>
	<tr class="tblbody">
	<td width="15%">&lt;?php echo $meta['staff']['fields']['<?php echo $field; ?>'];?&gt;：</td>
	<td width="85%"><input type="text" name="fields[<?php echo $field; ?>]" value="&lt;?php echo $staff['<?php echo $field; ?>'];?&gt;" id="field_<?php echo $field; ?>" /></td>
</tr>
        <?php
        endforeach;
	?>
</table>
</textarea>
</div>
<script type="text/javascript">
	$(document).ready(function () {

	});
</script>
<?php echo $this->render('footer.php');?>